<?php
class SecretaryMain extends Controller {
	function __construct() {
		parent::__construct();
		Auth::handleLogin();
		$this -> view -> js = array('secretarymain/js/default.js');
	}

	function index() {
		$this -> view -> render("secretarymain/index");
	}

	function getAllScheduleForPatientCancelDt() {
		$this -> model -> getAllScheduleForPatientCancelDt();
	}

	function logout() {
		Session::destroy();
		header('location: ' . URL . 'login');
		exit ;
	}
	
	public function xhrGetListOfErasedPatientsDt() {
		$this -> model -> xhrGetListOfErasedPatientsDt();
	}
	
	public function xhrGetListOfErasedPatients() {
		$this -> model -> xhrGetListOfErasedPatients();
	}

	function xhrUpdatePatient() {
		$this -> model -> xhrUpdatePatient();
	}

	function alreadyExistPatient() {
		$this -> model -> alreadyExistPatient();
	}

	function markAsPendant() {
		$this -> model -> markAsPendant();
	}

	function markAsUnconcreted() {
		$this -> model -> markAsUnconcreted();
	}

	function markAsConcreted() {
		$this -> model -> markAsConcreted();
	}

	function markAsCancel() {
		$this -> model -> markAsCancel();
	}

	function checkSchedule() {
		$this -> model -> checkSchedule();
	}

	function getAllEnableDoctors() {
		$this -> model -> getAllEnableDoctors();
	}

	function xhrInsertPatient() {
		$this -> model -> xhrInsertPatient();
		header('Location: http://localhost/clinica/secretarymain');
	}

	function getAllScheduleForPatientConcretedDt() {
		$this -> model -> getAllScheduleForPatientConcretedDt();
	}

	function getAllScheduleForPatientUnconcretedDt() {
		$this -> model -> getAllScheduleForPatientUnconcretedDt();
	}

	function getAllScheduleForPatientDt() {
		$this -> model -> getAllScheduleForPatientDt();
	}

	function getPatientById() {
		$this -> model -> getPatientById();
	}

	function xhrGetListOfPatients() {
		$this -> model -> xhrGetListOfPatients();
	}

	function xhrDeleteListing() {
		$this -> model -> xhrDeleteListing();
	}

}
